package extend.part2;


import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        Print<Teacher> print = new Print<>();
        Teacher teacher = new Teacher();
        print.print(teacher);
        Print<Student> print2 = new Print<>();
        Student student = new Student();
        print2.print(student);

    }
}
